package com.wnx.job.common.mapstruct;


import com.wnx.job.modules.jms.dto.StudentParam;
import com.wnx.job.modules.jms.model.JmsStudent;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


/**
 * @author wangnaixing
 */
@Mapper
public interface StudentMapper {

    StudentMapper INSTANCE = Mappers.getMapper(StudentMapper.class);

    StudentParam toDto(JmsStudent tbStudent);

    JmsStudent toPojo(StudentParam studentParam);
    List<JmsStudent> toPojoList(List<StudentParam> studentParam);

}
